package com.ncloud.crm.service.impl;

import java.util.List;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ncloud.crm.entity.BsNodeNetAccess;
import com.ncloud.crm.mapper.BsNodeNetAccessMapper;
import com.ncloud.crm.service.BsNodeNetAccessService;

@Service
public class BsNodeNetAccessServiceImpl implements BsNodeNetAccessService {
	
	private static final Logger logger = LogManager.getLogger(BsNodeNetAccessServiceImpl.class);
	@Autowired
	private BsNodeNetAccessMapper netAccessMapper;
	
	@Override
	public int insertNetAccess(BsNodeNetAccess netAccess) {
		return netAccessMapper.insertNetAccess(netAccess);
	}
	@Override
	public int updateNetAccess(BsNodeNetAccess netAccess) {
		return netAccessMapper.updateNetAccess(netAccess);
	}

	@Override
	public BsNodeNetAccess getNodeNetAccessOne(Long isp_inst_id) {
		return netAccessMapper.getNodeNetAccessByPk(isp_inst_id);
	}
	@Override
	public List<BsNodeNetAccess> getNodeNetAccesses(Long nodeId) {
		return netAccessMapper.getNodeNetAccesses(nodeId);
	}
	@Override
	public List<BsNodeNetAccess> getBsNodeNetAccesses(Long nodeId) {
		return netAccessMapper.getBsNodeNetAccesses(nodeId);
	}
}
